<?php
    session_start();
?>

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8" />
        <title>Register</title>
    </head>
    <body>
        <?php
            if(isset($_SESSION['message']))
            {
                echo $_SESSION['message'];
            }
            unset($_SESSION['message']);
        ?>
        <form method="post" action="register.php">
            <div>Please, type a username (between 4 and 20 symbols) and password (between 4 and 10 symbols):</div>
            Username: <input type="text" name="username" /><br>
            Password: <input type="password" name="password" /><br>
            <input type="submit" value="Register" />
        </form>
        <div><a href="index.php">Back to login page</a></div>
    </body>
</html>
